package com.zh.work.entity.channel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 二维码渠道路由商户实体类
 * @Author: Li.HuiNeng
 * @Create in: 2019-12-17 17:27
 * @Version: 1.0.1
 */
@ApiModel("二维码渠道路由商户实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qrcode_route_merch")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QrCodeRouteMerchEntity extends Model<QrCodeRouteMerchEntity> {


    private static final long serialVersionUID = -67041165686330072L;
    @ApiModelProperty(name = "主键", value = "id")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(name = "路由表ID", value = "routeId")
    private Long routeId;

    @ApiModelProperty(name = "渠道编码", value = "channelCode")
    private String channelCode;

    @ApiModelProperty(name = "渠道商户号", value = "channelMerchantNo")
    @TableField(value = "channel_merchno")
    private String channelMerchantNo;

    @ApiModelProperty(name = "代付类型", value = "payType")
    @TableField(exist = false)
    private Integer payType;
}
